package cn.le.workQueues;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 项目名  spring-boot
 * Created by lansp
 * Created at 2018/5/31
 * 描述:
 */
@Component
public class NoSender {

	@Autowired
	private AmqpTemplate amqpTemplate;

	public void send(int i){
		String context = "spring boot neo queue ****** " + i;
		System.out.println("Sender1 : " + context);
		amqpTemplate.convertAndSend("workQueues",context);
	}

}
